package com.lxlg.lxlg_order.client.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data

public class MemberShipLevelsForm {
    @Min(0)
    @Max(3)
    @ApiModelProperty("会员等级id")
    private int membershipLevelsId;
    @NotEmpty
    @ApiModelProperty("会员等级名称")
    private String membershipLevelsName;
    @NotEmpty
    @ApiModelProperty("会员规则")
    private String membershipGetscoreRule;
    /**
     * 会员有效时间(-1为永久)
     */
    @Min(-1)
    @ApiModelProperty("会员有效天数-1为永久")
    private Integer validDay;
    @NotEmpty
    @Pattern(regexp = "^[0-9]{1,}\\.{0,1}[0-9]{0,}")
    //会员价格不能为负数
    private String price;


}
